package com.bbdjt.weixin.model;


import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.apache.ibatis.type.Alias;

import java.io.Serializable;


import java.util.Date;

@Alias("leaveWord")
@Table(name = "leave_word")
public class LeaveWord implements Serializable  {
	@Transient
	private String nickname;
	@Transient
	private String headimaurl;
//使用@Transient注解可以忽略字段,添加该注解的字段不会作为表字段使用
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id")
	private Integer id;
	//留言内容							
	@Column(name = "leave_content")
	private String leaveContent;
	//帖子ID							
	@Column(name = "forum_post_id")
	private Integer forumPostId;
	//留言人ID							
	@Column(name = "patient_id")
	private Integer patientId;
	//留言时间							
	@Column(name = "create_date")
	private Date createDate;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	public String getLeaveContent() {
		return leaveContent;
	}

	public void setLeaveContent(String leaveContent) {
		this.leaveContent = leaveContent;
	}
	public Integer getForumPostId() {
		return forumPostId;
	}

	public void setForumPostId(Integer forumPostId) {
		this.forumPostId = forumPostId;
	}
	public Integer getPatientId() {
		return patientId;
	}

	public void setPatientId(Integer patientId) {
		this.patientId = patientId;
	}
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getHeadimaurl() {
		return headimaurl;
	}

	public void setHeadimaurl(String headimaurl) {
		this.headimaurl = headimaurl;
	}
	
}